<?xml version="1.0" encoding="ISO-8859-1"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">

	<style>
		.header {
 		  background-color: #e7efff;
 		  width: 100%;
 		  text-align: center;
 		  font-weight: bold;
		}

		.alt-dialog, .footer {
		  text-align: left;
		  background-color: #c3d9ff;
		  vertical-align: middle;
		}

		.dialog-handle {
		  font-weight: bold;
		  background-color: #c3d9ff;
		}
	</style>

	<div style="width: 100%; border: 0px solid black;">
		<div class="alt-dialog">
			<table class="header" align="center">
				<tr><td>GIP - Gerenciamento de Impacto em Projetos</td></tr>
			</table>
				
			<br/>	
				
			<table align="center" width="100%">
				<tr>
					<td align="left">
						<img src="/gip-portal/image/logo-gip.jpg" width="140" height="60" />
					</td>
					<td align="right">
						<b>Usuário: </b> <h:outputLabel value="#{loginController.usuario.nome}"/>
					</td>
					<td width="20px" align="right">
						<h:form>
							<h:commandButton action="#{loginController.efetuarLogout}" value="Sair" />
						</h:form>	
					</td>			
				</tr>
			</table>
		</div>	
	</div>

	<h:form>
		<rich:toolBar width="100%">
			<!-- projeto -->
			<rich:dropDownMenu>
				<f:facet name="label">
					<h:panelGroup>
						<h:outputText value="Projeto" />
					</h:panelGroup>
				</f:facet>
				<rich:menuItem submitMode="ajax" value="Cadastrar Projeto" action="#{projetoController.cadastro}" />
				<rich:menuItem submitMode="ajax" value="Consultar Projeto" action="#{projetoController.lista}" />
			</rich:dropDownMenu>

			<!-- categoria -->
			<rich:dropDownMenu>
				<f:facet name="label">
					<h:panelGroup>
						<h:outputText value="Categoria" />
					</h:panelGroup>
				</f:facet>
				<rich:menuItem submitMode="ajax" value="Cadastrar Categoria" action="#{categoriaController.cadastro}" />
				<rich:menuItem submitMode="ajax" value="Consultar Categoria" action="#{categoriaController.lista}" />
			</rich:dropDownMenu>
			
			<!-- artefato -->
			<rich:dropDownMenu>
				<f:facet name="label">
					<h:panelGroup>
						<h:outputText value="Artefato" />
					</h:panelGroup>
				</f:facet>
				<rich:menuItem submitMode="ajax" value="Cadastrar Artefato" action="#{artefatoController.cadastro}" />
				<rich:menuItem submitMode="ajax" value="Consultar Artefato" action="#{artefatoController.lista}" />
				<rich:menuItem submitMode="ajax" value="Histórico Artefato" action="#{historicoArtefatoController.lista}" />
			</rich:dropDownMenu>
			
			<!-- relacionamento -->
			<rich:dropDownMenu>
				<f:facet name="label">
					<h:panelGroup>
						<h:outputText value="Relacionamento" />
					</h:panelGroup>
				</f:facet>
				<rich:menuItem submitMode="ajax" value="Relacionar Artefato" action="#{relacionamentoController.cadastro}" />
				<rich:menuItem submitMode="ajax" value="Consultar Relacionamento" action="#{relacionamentoController.lista}" />
			</rich:dropDownMenu>

			<!-- relatorio -->
			<rich:dropDownMenu>
				<f:facet name="label">
					<h:panelGroup>
						<h:outputText value="Relatório" />
					</h:panelGroup>
				</f:facet>
				<rich:menuItem submitMode="ajax" value="Analisar Impacto" action="./" />
			</rich:dropDownMenu>
			
			<!-- usuario -->
			<rich:dropDownMenu>
				<f:facet name="label">
					<h:panelGroup>
						<h:outputText value="Usuário" />
					</h:panelGroup>
				</f:facet>
				<rich:menuItem submitMode="ajax" value="Cadastrar Usuário" action="#{usuarioController.cadastro}" />
				<rich:menuItem submitMode="ajax" value="Consultar Usuário" action="#{usuarioController.lista}" />
			</rich:dropDownMenu>
			
		</rich:toolBar>
	</h:form>

</ui:composition>